using ThingsEdge.Exchange.Contracts;

namespace Digitalmes.Infrastructure.Scada.Handlers;

/// <summary>
/// SCADA 请求处理接口。
/// </summary>
public interface IScadaAskHandler
{
    /// <summary>
    /// 处理请求数据
    /// </summary>
    /// <param name="message">请求消息</param>
    /// <param name="cancellationToken"></param>
    /// <returns></returns>
    Task<ScadaResult> HandleAsync(RequestMessage message, CancellationToken cancellationToken = default);
}
